package com.hutao.manage.model;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.hutao.manage.util.StringUtil;

public class HospitalVisitDoctorAdviceStandingItem {

	/**
	 * 医嘱开始时间
	 */
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date doctorAdviceStartDateTime;
	
	
	/**
	 * 医嘱内容
	 */
	private String doctorAdviceContent;
	
	/**
	 * 开始医师姓名
	 */
	private String doctorAdviceStartDoctorName;
	
	/**
	 * 结束护士姓名
	 */
	private String doctorAdviceStartNurseName;
	
	/**
	 * 医嘱结束时间
	 */
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date doctorAdviceEndDateTime;
	

	/**
	 * 结束医师姓名
	 */
	private String doctorAdviceEndDoctorName;
	
	/**
	 * 结束护士姓名
	 */
	private String doctorAdviceEndNurseName;

	public Date getDoctorAdviceStartDateTime() {
		return doctorAdviceStartDateTime;
	}

	public void setDoctorAdviceStartDateTime(Date doctorAdviceStartDateTime) {
		this.doctorAdviceStartDateTime = doctorAdviceStartDateTime;
	}

	public String getDoctorAdviceContent() {
		return StringUtil.meaningStr(doctorAdviceContent);
	}

	public void setDoctorAdviceContent(String doctorAdviceContent) {
		this.doctorAdviceContent = doctorAdviceContent;
	}

	public String getDoctorAdviceStartDoctorName() {
		return StringUtil.meaningStr(doctorAdviceStartDoctorName);
	}

	public void setDoctorAdviceStartDoctorName(String doctorAdviceStartDoctorName) {
		this.doctorAdviceStartDoctorName = doctorAdviceStartDoctorName;
	}

	public String getDoctorAdviceStartNurseName() {
		return StringUtil.meaningStr(doctorAdviceStartNurseName);
	}

	public void setDoctorAdviceStartNurseName(String doctorAdviceStartNurseName) {
		this.doctorAdviceStartNurseName = doctorAdviceStartNurseName;
	}

	public Date getDoctorAdviceEndDateTime() {
		return doctorAdviceEndDateTime;
	}

	public void setDoctorAdviceEndDateTime(Date doctorAdviceEndDateTime) {
		this.doctorAdviceEndDateTime = doctorAdviceEndDateTime;
	}

	public String getDoctorAdviceEndDoctorName() {
		return StringUtil.meaningStr(doctorAdviceEndDoctorName);
	}

	public void setDoctorAdviceEndDoctorName(String doctorAdviceEndDoctorName) {
		this.doctorAdviceEndDoctorName = doctorAdviceEndDoctorName;
	}

	public String getDoctorAdviceEndNurseName() {
		return StringUtil.meaningStr(doctorAdviceEndNurseName);
	}

	public void setDoctorAdviceEndNurseName(String doctorAdviceEndNurseName) {
		this.doctorAdviceEndNurseName = doctorAdviceEndNurseName;
	}
	
	@JsonIgnore
	public boolean isEmpty(){
		if(this.getDoctorAdviceStartDateTime() == null && this.getDoctorAdviceContent()==null
				&&this.getDoctorAdviceStartDoctorName() ==null && this.getDoctorAdviceStartNurseName() ==null
				&&this.getDoctorAdviceEndDateTime()==null && this.getDoctorAdviceEndDoctorName() == null
				&&this.getDoctorAdviceEndNurseName() == null){
			return true;
		}
		return false;
	}
	
	
}
